package com.definesys.smecrailtransit.SmecManager.SmecRetrofit;

import java.util.HashMap;


/**
 * Created by xupeizuo on 2017/6/13.
 */

public class NetWorkCodeHelper {



    interface ApiErrorCode {

//        int EXCEPTION_ERROE=-1;
//        int PLIEASE_LOGIN=-2;
//        int DATA_ALERADY_EXIST=-3;
//        int DATA_NOT_EXIST=-4;
//        int CODE_IS_ERROR=-5;
//        int OPERATOR_TO_MANY=-6;
//        int INTERGRATION_NOT_MANY=-7;
//        int Insufficient_grades=-8;
//        int data_is_invalid=-9;
//        int Over_times=10;

    }


    interface HttpErrorCode {

        int UNAUTHORIZED = 401;
        int FORBIDDEN = 403;
        int NOT_FOUND = 404;
        int REQUEST_TIMEOUT = 408;
        int INTERNAL_SERVER_ERROR = 500;
        int BAD_GATEWAY = 502;
        int SERVICE_UNAVAILABLE = 503;
        int GATEWAY_TIMEOUT = 504;

    }

    public static HashMap<Integer,String> getErrorMsgMap(){
        HashMap<Integer,String> map=new HashMap<>();

//        map.put(ApiErrorCode.EXCEPTION_ERROE,"异常错误");
//        map.put(ApiErrorCode.PLIEASE_LOGIN,"请登录");
//        map.put(ApiErrorCode.DATA_ALERADY_EXIST,"数据已存在");
//        map.put(ApiErrorCode.DATA_NOT_EXIST,"数据不存在");
//        map.put(ApiErrorCode.CODE_IS_ERROR,"验证码不正确");
//        map.put(ApiErrorCode.OPERATOR_TO_MANY,"操作不能太频繁");
//        map.put(ApiErrorCode.INTERGRATION_NOT_MANY,"积分不足");
//        map.put(ApiErrorCode.Insufficient_grades,"等级不对");
//        map.put(ApiErrorCode.data_is_invalid,"数据已失效");
//        map.put(ApiErrorCode.Over_times,"超过次数");

        return map;
    }

}
